const Reader = require('awdb_nodejs').default;
Parseip()

function Parseip() {
    const ip = '211.112.21.0'
    //const ip = '2001:023a:0000:0000:0000:0000:0000:0000'
    console.log("待查询IP：", ip)
    // databaseFile修改为定位库地址
    let databaseFile = 'test.awdb'
    Reader.open(databaseFile).then((awdb) => {
        const location = awdb.readAwdb(ip);
        console.log(JSON.stringify(location))
    })
}
